<?php

namespace App\Http\Controllers;

//use Illuminate\Http\Request;
use Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use App\Models\UsersReg;
use App\Models\SearchJilu;

class AdminSearchJiluController extends Controller
{
    public function searchjilu()
    {
        // 显示搜索记录
        $searchjilus = searchjilu::orderBy('add_time', 'desc')->paginate(15);

        return view('admin.searchjilu',array(
            'searchjilus' => $searchjilus        
        ));
    }

    public function del_searchjilu($id)
    {
        // 删除对应的搜索记录
        SearchJilu::find($id)->delete();
        return '删除成功！';
    }
 
}
